import Vue from 'vue'
import Vuex from 'vuex'
import { userInfo, UserInfoState } from './Modules/userInfo'
import { menuInfo, menuInfoState } from '@/store/Modules/menuState'

Vue.use(Vuex)

export default new Vuex.Store<StoreState>({
  modules: {
    userInfo,
    menuInfo,
  },
})

export interface StoreState {
  userInfo: UserInfoState,
  menuInfo: menuInfoState
}
